package com.gmail.bernabe.laurent.java_swing.rubik_cube_edi.ihm;

import javax.swing.JDesktopPane;
import javax.swing.JFrame;

public class RubikCubeEDIFrame extends JFrame {
	
	public RubikCubeEDIFrame(){
		setTitle("Rubik Cube EDI");
		setSize(800,600);
		setLocationRelativeTo(null);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		add(desktopPane);
		desktopPane.add(new RubikCubeEDIInternalFrame(++instanceNumber, 0, 10));
		desktopPane.add(new RubikCubeEDIInternalFrame(++instanceNumber, 400, 10));
	}

	private static final long serialVersionUID = 1L;
	private JDesktopPane desktopPane = new JDesktopPane();
	private int instanceNumber;
}
